package com.jisu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("admin")
public class Admin {
    @TableId(type = IdType.AUTO)
    @TableField("admin_id")
    private Integer adminId;

    private String account;
    private String password;

    @TableField("real_name")
    private String realName;

    private Integer gender;
    private String phone;
    private String email;

    @TableField("id_card_no")
    private String idCardNo;

    @TableField("avatar_url")
    private String avatarUrl;

    private Integer permissions;

    @TableField("entry_date")
    private java.sql.Date entryDate;

    private Integer status;

    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("updated_time")
    private LocalDateTime updatedTime;
}
